package whf.framework.ext.service;

import java.util.List;

import whf.framework.exception.FindException;
import whf.framework.ext.entity.Category;
import whf.framework.service.TreeService;

/**
 * @author wanghaifeng
 * @email king@126.com
 * @modify 2006-06-16
 */
public interface CategoryService extends whf.framework.service.Service<Category>, TreeService<Category> {
	public List<Category> findCategories(Category parent) throws FindException;
	
	public Category findByCode(String code) throws FindException;
	
	/**
	 * 根据绑定的枚举类型查找
	 * @modify wanghaifeng Jan 17, 2007 12:25:30 PM
	 * @param enumClassName
	 * @return
	 * @throws FindException
	 */
	public Category findByEnumClassName(String enumClassName) throws FindException;
} 